#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[])
{
    int total = 5;

    double sum = 0;
    double weigit[total];

    memset(weigit, 0, sizeof(weigit));

    for (size_t i = 0; i < total; i++)
    {
        printf("请输入第%d位女生的体重：", i + 1);
        scanf("%lf", &weigit[i]);
        sum += weigit[i];
    }
    printf("%d位的女生的平均体重是%lf", total, sum / total);

    return 0;
}
